import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:honeypotflutter/modules/deliver/pages/deliver_select/view.dart';
import 'package:honeypotflutter/publicBussine/bussine_scanf.dart';
import 'logic.dart';

class DeliverScanfPage extends StatefulWidget {
  const DeliverScanfPage({Key? key}) : super(key: key);

  @override
  State<DeliverScanfPage> createState() => _DeliverScanfPageState();
}

class _DeliverScanfPageState extends State<DeliverScanfPage> {
  final DeliverScanfLogic logic = Get.put(DeliverScanfLogic());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: MGScanf(scanfResult: (result) {
        Get.to(DeliverSelectPage(), arguments: result);
      }),
    );
  }

  @override
  void dispose() {
    Get.delete<DeliverScanfLogic>();
    super.dispose();
  }
}
